# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=svgbob
pkgver=0.6.6
pkgrel=0
pkgdesc="Convert your ascii diagram scribbles into happy little SVG"
url="https://github.com/ivanceras/svgbob"
arch="all !s390x !riscv64" # limited by rust/cargo
license="Apache-2.0"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/ivanceras/svgbob/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	cargo fetch --locked
}

build() {
	cargo build --frozen --release
}

check() {
	cargo test all --frozen
}

package() {
	install -Dm0755 target/release/svgbob_cli "$pkgdir"/usr/bin/svgbob
}

sha512sums="
ab9491b0c555bc7bd714bd3fdbc685a83f2b73b9a478862fe606df4f78f406544eda43adf73adbbce2990e46dfb3b2471505bcb160bb892b0986a0a81587f8df  svgbob-0.6.6.tar.gz
"
